//
//  ChatTextCell.m
//  MQTT-Demo
//
//  Created by zhaoguoteng on 2020/4/11.
//  Copyright © 2020 zhaoguoteng. All rights reserved.
//

#import "ChatTextCell.h"
#import <SDWebImage/SDWebImage.h>

@interface ChatTextCell ()

@property(nonatomic, strong) IBOutlet UIView *bgView;
@property(nonatomic, strong) IBOutlet UILabel *contentLabel;
@property(nonatomic, strong) IBOutlet UIImageView *avatarImgView;

//https://upload-images.jianshu.io/upload_images/106726-7ab04a26a06de361.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

@end

@implementation ChatTextCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setModel:(ChatTextModel *)model {
    _model = model;
    
    self.contentLabel.text = model.text;
    [self.avatarImgView sd_setImageWithURL: [NSURL URLWithString:@"https://upload-images.jianshu.io/upload_images/106726-7ab04a26a06de361.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240"]];
}

@end
